<include file="public@header"/>
<link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<style type="text/css">
    .cardBox {
        width: 200px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        text-align: center;
        float: left;
        margin-right: 10px;
        margin-top: 10px;
        padding: 5px;
        padding-top: 15px;
    }

    .headerBox {
        color: #006fc4;
        padding: 10px;
        font-size: 15px;
        height: 60px;
    }

    .bodyBox {
        padding: 10px;
    }

    .bodyBox p {
        margin-left: 5px;
    }
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{$res} / 财务</a></li>
    </ul>
    <div style="margin-top: 23px"></div>
    <table class="table table-hover table-bordered">


        <?php
 $role = Db::name('role_user')->where(['user_id'=>cmf_get_current_admin_id()])->value('role_id');
        if($role == 3 || $role == 5){
        ?>
        <?php }else{?>
        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('project/index',array('id'=>$data['id']))}">工程收款</a>
                </p>
            </div>

        </div>


        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('bill/index',array('id'=>$data['id']))}">流水汇总</a>
                </p>
            </div>
        </div>

        <?php }?>


        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('goods/index',array('id'=>$data['id']))}">甲供材</a>
                </p>
            </div>

        </div>
        <?php
 $role = Db::name('role_user')->where(['user_id'=>cmf_get_current_admin_id()])->value('role_id');
        if($role == 5){
        ?>
        <?php }else{?>
        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('contact/index',array('id'=>$data['id']))}">联系单</a>
                </p>
            </div>
        </div>
        <?php }?>

        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('life/index',array('id'=>$data['id']))}">生活费发放</a>
                </p>
            </div>
        </div>


        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('reward/index',array('id'=>$data['id']))}"> 工程奖励<strong>/</strong>罚款</a>
                </p>
            </div>
        </div>

        <div class="cardBox">
            <div class="headerBox" style="background-color: #585858;">
                <p>
                    <a title="查看详情" style="cursor: pointer; color:white"
                       href="{:url('coor/index',array('id'=>$data['id']))}">甲分包罚款/配合费</a>
                </p>
            </div>
        </div>

    </table>


</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>